!function(){"use strict";if(window.VWO=window.VWO||[],window.VWO.coreLibExecuted)return;window.VWO.coreLibExecuted=1,window.VWO.v="7.0",window.VWO.v_e="a988b1cc";const e=e=>{try{window.VWO._.customError(e)}catch(e){}};function t(t,o={sendErrorLog:!1},n){try{return t()}catch(t){return o.sendErrorLog&&setTimeout(()=>{try{e({msg:o.msg||"safelyGetValue failed!",url:o.url||"errorHandler.ts",source:o.source||t})}catch(e){}},100),n}}function o(e,o={sendErrorLog:!0}){return t(()=>e.toLowerCase(),o,"")}let n;const i=function(){if(void 0!==n)return n;const e=[],t=window.VWO._.allSettings.dataStore.campaigns;let o,i;for(let o in t)e.push(o);return n=!!(o=(window.location.search+window.location.hash).match(/.*_vis_test_id=(.*?)&.*_vis_opt_preview_combination=(.*?)(?:&|#|$)/))&&(!(!e.includes(o[1])||!t[o[1]]||void 0===t[o[1]].combs[i=function(e){if(!e)return e;try{e=window.decodeURIComponent(e)}catch(e){}return e}(o[2])])&&i),n};var s;const r=null===(s=window._vwoCc)||void 0===s?void 0:s.cookiePrefix;class a{constructor(){var e,t;window.VWO._.phoenixMT.on("vwo_campaignsLoaded",()=>{this.processLoadedCampaigns(),window.VWO.state="executionComplete"}),(null===(e=window.VWO._.phoenixMT.getEventHistory("vwo_campaignsLoaded"))||void 0===e?void 0:e.length)>0&&(this.processLoadedCampaigns(),(null===(t=window._vwoCc)||void 0===t?void 0:t.delayCustomGoal)||window.VWO._.phoenixMT.clearEventHistory("vwo_campaignsLoaded"))}processLoadedCampaigns(){this.setBucketedCampaigns(),this.executeAll({bucketed_campaigns:window.VWO._.bucketedCampaignsAPIStore.campaigns})}setBucketedCampaigns(){window.VWO._.bucketedCampaignsAPIStore=window.VWO._.bucketedCampaignsAPIStore||{},window.VWO._.bucketedCampaignsAPIStore.campaigns=[];let e=window._vis_debug||i()?"debug":"";e+="_vis_opt_exp_";const t=new RegExp(`^${o=e,r?o.startsWith(r)?o:`${r}${o}`:o}(\\d{1,})_combi$`,"");var o;const n=document.cookie.split(";");for(let e=0;ee.trim()),s=t.exec(o);s&&_vwo_exp[s[1]]&&window.VWO._.bucketedCampaignsAPIStore.campaigns.push({[s[1]]:i,name:_vwo_exp[s[1]].name,variation:_vwo_exp[s[1]].comb_n[i]})}}executeAll(e={}){const o=t(()=>window.VWO._.bucketedCampaignsAPIStore.callbacks.length)||0;for(let n=0;n"number"==typeof o.count)?o.count>0?(o(e),--o.count):(window.VWO._.bucketedCampaignsAPIStore.callbacks.splice(n,1),n--):o(e)}}}function d(e,t,o,n){return new(o||(o=Promise))(function(i,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?i(e.value):(t=e.value,t instanceof o?t:new o(function(e){e(t)})).then(r,a)}d((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const c="cCC",l="hCl",w="vwo_dynDataFetched",u="vwo__activated",_="nSF",g="vwo_dom_submit",E="vwo_dom_hover",h="vwo_dom_focus",v="vwo_dom_blur",O="vwo_pageUnload",p="vE",A="pageExitEvent",S="cCAI",f="loadSurveyLib",C="vwo_widgetClose",m="vwo_widgetShown";class I{constructor(){this.forceKeys={id:"forceIdSelector",class:"forceClassSelector",customAttribute:"forceCustomAttributeSelector"},this.regexCache={}}shouldUseAttributeSelector(e,t,o){if(!!((e&&e.getRootNode())instanceof ShadowRoot)||t.dAttrName||o._vwo_noAttributeMode)return null;const n=this.createRegex("string"==typeof t.dAttrName?t.dAttrName:""),i=[],s=e.attributes;if(s)for(let e=0;e1){const e=i.slice(0,3).map(e=>this.createAttributeSelector(e.name,e.value)).join("");if(this.verify(e,t))return e}return null}createAttributeSelector(e,t){return`[${e}='${t?t.replace(/'/g,"\\'"):""}']`}escapeCSS(e){return"undefined"!=typeof CSS&&CSS.escape?CSS.escape(e):e}createRegex(e){if(!e)return null;if(this.regexCache[e])return this.regexCache[e];try{const t=new RegExp(e);return this.regexCache[e]=t,t}catch(e){return null}}isDynamicAttribute(e=""){return I.RE_DYNAMIC_ATTRIBUTE_1.test(e)||I.RE_DYNAMIC_ATTRIBUTE_2.test(e)}isDynamicId(e){return(I.RE_DYNAMIC_ID_1.test(e)||I.RE_DYNAMIC_ID_2.test(e))&&!I.RE_DYNAMIC_ID_FOR_ADDED_WIDGET.test(e)}isVwoClass(e){return e.indexOf("vwo")>-1||e.indexOf("_vwo_")>-1}getSelectorPathSettings(e){return{_vwo_noIdMode:!(!e||!(!0===e.dIdVal||e.selectorPathSetting&&e.selectorPathSetting.hasOwnProperty("editorNoIdMode")))&&(!0===e.dIdVal||e.selectorPathSetting.editorNoIdMode),_vwo_noDynamicIdMode:!(!e||!(e.dDynId||e.selectorPathSetting&&e.selectorPathSetting.hasOwnProperty("editorNoDynamicIdMode")))&&(e.dDynId||e.selectorPathSetting.editorNoDynamicIdMode),_vwo_noClassMode:!(!e||!(e.dClassValBoolean||e.selectorPathSetting&&e.selectorPathSetting.hasOwnProperty("editorNoClassMode")))&&(e.dClassValBoolean||e.selectorPathSetting.editorNoClassMode)}}isDynamicClass(e){return I.RE_DYNAMIC_CLASS_1.test(e)||I.RE_HOVER_CLASS.test(e)}shouldUseTextBasedSelector(e,t){return null}findRecursiveTextBasedSelector(e,t,o){return null}generateShortPath(e,t,o={}){if(!e)return null;if(o.originNode||(o.originNode=e),o.dClassValBoolean=o.hasOwnProperty("dClassValBoolean")?o.dClassValBoolean:!0===o.dClassVal,o.dClassVal="string"==typeof o.dClassVal?`${o.dClassVal}|${I.DEFAULT_EXCLUDE_CLASSES_REGEX}`:I.DEFAULT_EXCLUDE_CLASSES_REGEX,this.shouldUseSiblingSelectorEarly(e,o)){const t=this.shouldUseSiblingSelector(e,o);if(t)return t}if(o.skipRootNodeInSelectorPath&&o.documentRootNode===e)return"";const n=this.getSelectorPathSettings(o);(o.forceTextBasedSelector||o.forceRecursiveTextBasedSelector)&&(n._vwo_noIdMode=!0,n._vwo_noClassMode=!0,n._vwo_noAttributeMode=!0);const i=this.getNodeName(e);if(document.body===e||"head"===i||"html"===i)return i;const s="*"===i,r=!(e.getRootNode()instanceof ShadowRoot),a=this.tryCustomAttributeSelector(e,o,r);if(a)return a;const d=this.createRegex("string"==typeof o.dIdVal?o.dIdVal:"");if(this.shouldUseIdSelector(e,o,n,d))return"#"+e.getAttribute("id");const c=this.shouldUseClassSelector(e,o,n);if(c)return c;const l=this.shouldUseAttributeSelector(e,o,n);if(l)return l;if(r){const t=this.shouldUseTextBasedSelector(e,o);if(t)return t}if(this.shouldUseRecursiveTextBasedSelector(e,o,r)){const t=5,n=this.findRecursiveTextBasedSelector(e,t,o);if(n)return e._vwoCachedShortPath=n,n}const w=this.generateParentPath(e,t,o);if(w&&"string"==typeof w&&-1!==w.indexOf(":nth-parent"))return w;const u=this.generateCurrentNodePath(e,i,s,o);if(o.skipRootNodeInSelectorPath&&!w)return u;const _=this.handleSlotAssignment(e,u);return this.isSpecialUrlCase()?this.handleSpecialUrlCase(e,w,_):`${w} > ${_}`}shouldUseSiblingSelectorEarly(e,t){return!t.skipTextBasedSelector&&window._vwo_textBasedSelectorMode&&window.eventArchEnabled&&t.recursiveCall&&window._vwo_textBasedSelectorV2Mode}getNodeName(e){const t=e.nodeName.toLowerCase(),o=t.match(I.DANGEROUS_NODE_REGEX);return o&&o[0]===t?t:e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.nodeName:"*"}tryCustomAttributeSelector(e,t,o){const n=this.forceKeys;if(!o||!t[n.customAttribute]&&!window._vwo_useAttributeForSelector&&!t.isContainedInBasicOrPastedElement||this.isForceAttributeSelectorRequired(t))return null;const i=t[n.customAttribute]&&t.forceCustomAttributeName||(t.isContainedInBasicOrPastedElement?"vwo-element-id":void 0)||window._vwo_useAttributeForSelector,s=t[n.customAttribute]&&t.forceCustomAttributeValue||(i?e.getAttribute(i):void 0);if(!s)return null;const r=`[${i}='${s}']`;return t[n.customAttribute]||this.verify(r,t)?r:null}shouldUseRecursiveTextBasedSelector(e,t,o){return!t.skipTextBasedSelector&&!t.skipRecursiveTextBasedSelector&&window._vwo_textBasedSelectorMode&&o&&window.eventArchEnabled&&!t.recursiveCall&&e.innerText&&-1===e.innerText.indexOf("<%=")&&window._vwo_textBasedSelectorV2Mode}generateParentPath(e,t,o){const n=e.parentNode||e.host;return t?this.generateCachedShortPath(n):this.generateShortPath(n,t,Object.assign(Object.assign({},o),{recursiveCall:!0,parentLevel:0}))}generateCurrentNodePath(e,t,o,n){let i=0;for(let t=e;t;t=t.previousSibling)(e.nodeName===t.nodeName||o&&t.nodeType===Node.ELEMENT_NODE)&&i++;return t+(o?":nth-child(":":nth-of-type(")+i+")"}handleSlotAssignment(e,t){return e.assignedSlot&&document.contains(e.assignedSlot)?` slot > ${t}`:t}isSpecialUrlCase(){return window.location&&-1!==window.location.href.indexOf("https://quote.cignaglobal.com/s/")||!1}handleSpecialUrlCase(e,t,o){let n=o;if(e.assignedSlot&&(n=" slot > #assignElements()"),e.shadowRoot&&-1===n.indexOf("#document-fragment:nth-child(1)")&&(n=`${n} > #document-fragment:nth-child(1)`),t&&"string"==typeof t){const e=t.split(">").map(e=>e.trim());if("#document-fragment:nth-child(1)"===e[e.length-1]&&"#document-fragment:nth-child(1)"===n)return t}return`${t} > ${n}`}isUnstableClass(e){return!1}isForceAttributeSelectorRequired(e){return!!e&&!!(e[this.forceKeys.customAttribute]||e[this.forceKeys.id]||e[this.forceKeys.class])}shouldUseSiblingSelector(e,t){return null}shouldUseIdSelector(e,t,o,n){const i=e.getAttribute("id");return!(e.getRootNode()instanceof ShadowRoot)&&t[this.forceKeys.id]||(!o._vwo_noIdMode||t.isContainedInWidget)&&i&&(!n||!n.test(i))&&!I.EXCLUDED_NODE_NAMES.test(e.nodeName)&&!(o._vwo_noDynamicIdMode&&this.isDynamicId(i))&&this.verify("#"+i,t)&&!this.isForceAttributeSelectorRequired(t)}shouldUseClassSelector(e,t,o){if(!!(e.getRootNode()instanceof ShadowRoot)||!e.hasAttribute||!t[this.forceKeys.class]&&(!e.hasAttribute("class")||o._vwo_noClassMode||t.isContainedInWidget||t.isContainedInBasicAddElement)||this.isForceAttributeSelectorRequired(t))return null;const n=e.getAttribute("class").split(/\s+/),i="string"==typeof t.dClassVal?n.filter(e=>{const o=this.createRegex(t.dClassVal);return!this.isVwoClass(e)&&!this.isUnstableClass(e)&&I.VALID_CLASS_NAME_REGEX.test(e)&&(!o||!o.test(e))}):n.filter(e=>!this.isVwoClass(e)&&!this.isUnstableClass(e)&&I.VALID_CLASS_NAME_REGEX.test(e));for(const e of i)if(t.forceClassSelector||this.verify(e,t,"class")&&!this.isDynamicClass(e))return"."+this.escapeCSS(e);if(i.length>0){const e=i.map(e=>this.escapeCSS(e)),o="."+e.join(".");if(t.forceClassSelector||this.verify(o,t)&&!this.isDynamicClass(e.join(".")))return o}return null}generateCachedShortPath(e,t){return e?e._vwoCachedShortPath?e._vwoCachedShortPath:e._vwoCachedShortPath=this.generateShortPath(e,!0,t):null}verify(e,t,o){try{const n=t.documentRootNode||document;return"class"===o?!!t._vwo_skipUniqueElementsCheck||1===n.getElementsByClassName(e).length:1===n.querySelectorAll(e).length}catch(e){return!1}}}function N(e,t){if(e){var o,n="."+e,i=window.vwo_$;if((t=t||{})[e])return!1;try{o=i(n)}catch(e){o=""}return 1===o.length||(t[e]=!0,!1)}}function T(e){if(e){var t,o=window.vwo_$;try{t=o("#"+e)}catch(e){t=""}return t.length}}function V(e,t){var o=t[e](),n=t.get(0);if(!o){if(window.getComputedStyle&&void 0!==(o=getComputedStyle(n)[e])&&(o=parseInt(o,10),!isNaN(o)&&o))return o;o=n["client"+e.toUpperCase()[0]+e.substring(1,e.length)]}return o}function W(e){if(e.previousElementSibling)return e.previousElementSibling;for(;e=e.previousSibling;)if(1===e.nodeType)return e}function b(e,t){if(!e)return null;if(e===document)return"#document";t=t||{};var o,n,i,s,r,a=e,d=[],c=e.tagName,l=window.vwo_$;if(e===document.body||e===document.head)return c;for(;e;){o=(c="undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?"shadow-root":e.tagName)&&c.match(/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/),c&&o&&(o&&o[0])===c||(c="*");const u=["INPUT","SELECT"].indexOf(e.tagName)>-1;try{n=l(e).attr("id")}catch(a){n=e.id}u&&e.name?c=c+'[name="'+e.name+'"]':n&&"string"==typeof n&&T(n)&&(c=n.match(/^\d/)?c+'[id="'+n+'"]':c+"#"+n),i=(i=e.getAttribute&&e.getAttribute("class"))?i.split(/\s+/):[];for(var w=0;w "+d.join(" + ")}function R(e){return e instanceof SVGElement&&e.tagName&&"svg"!==e.tagName.toLowerCase()?R(e.parentNode):e}function L(e,t){return Math.round(e/t*100)}function D(){const e=document.querySelector("._vwo_scroll_fix"),t=e||document.documentElement,o=(null==e?void 0:e.scrollTop)||window.scrollY||window.pageYOffset,n=(null==e?void 0:e.scrollLeft)||window.scrollX||window.pageXOffset,i=t.scrollHeight,s=t.scrollWidth,r=window.innerHeight,a=window.innerWidth,d=o+r,c=L(d,i),l=n+a;return{xScrollPercent:L(l,s),yScrollPercent:c,absXScroll:l,absYScroll:d,contentWidth:s,contentHeight:i,scrollTop:o}}var y;I.EXCLUDED_KEY_STRINGS=["data-user-id","data-kriti-","data-user-name","data-user-email","data-customer-logged-in","data-session-id","data-cart-id","data-timestamp","data-date","data-time","data-order-number","data-product-id","data-token","data-api-key","data-ga-","data-gtm-","data-utm-","data-tracking-id","data-session-count","data-page-view","data-locale","data-language","data-currency","data-region","data-experiment-id","data-variant-id","data-personalization-id","data-ab-test-group"],I.EXCLUDED_ATTR_VALUES_REGEX=/^(1|0|true|false|self|logged-in|log)$/,I.EXCLUDED_ATTR_KEYS_REGEX=new RegExp(`^(${I.EXCLUDED_KEY_STRINGS.join("|")})`),I.DATA_SELECTOR_CHECK=/^data-(.+)/,I.VALID_CLASS_NAME_REGEX=/^[^:]+$/,I.DANGEROUS_NODE_REGEX=/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,I.EXCLUDED_NODE_NAMES=/base|link|meta|style|iframe|script|noscript/gi,I.DEFAULT_EXCLUDE_CLASSES_REGEX="(^elementor-)|elementor-|(^active)|active|(^sc-)|(^pf-)|(^__pf)",I.RE_DYNAMIC_ATTRIBUTE_1=/[a-z]+[_-]?([0-9_-]){2,}$/,I.RE_DYNAMIC_ATTRIBUTE_2=/[0-9a-z]{5,}/gi,I.RE_DYNAMIC_ID_1=/[a-z]+[_-]?([0-9_-]){2,}$/,I.RE_DYNAMIC_ID_2=/[0-9a-f]{5,}/gi,I.RE_DYNAMIC_ID_FOR_ADDED_WIDGET=/(vwo-widget-)[0-9]{2,}/gi,I.RE_DYNAMIC_CLASS_1=/[a-z]+[_-][0-9_-]{4,}/gi,I.RE_HOVER_CLASS=/hover/gi,function(e){e[e.SCHEDULE_CALLBACK=0]="SCHEDULE_CALLBACK",e[e.REQUEST_IDLE_CALLBACK=1]="REQUEST_IDLE_CALLBACK",e[e.REQUEST_ANIMATION_FRAME=2]="REQUEST_ANIMATION_FRAME",e[e.QUEUE_MICROTASK=3]="QUEUE_MICROTASK",e[e.SET_TIMEOUT=4]="SET_TIMEOUT"}(y||(y={}));const U={[y.SCHEDULE_CALLBACK]:{doesThisMethodExist:"function"==typeof t(()=>window.scheduler.yield),defer:e=>window.scheduler.yield().then(()=>e())},[y.REQUEST_IDLE_CALLBACK]:{doesThisMethodExist:"function"==typeof requestIdleCallback,defer:(e,t=200)=>requestIdleCallback(e,{timeout:t})},[y.QUEUE_MICROTASK]:{doesThisMethodExist:"function"==typeof queueMicrotask,defer:e=>queueMicrotask(e)},[y.REQUEST_ANIMATION_FRAME]:{doesThisMethodExist:"function"==typeof requestAnimationFrame,defer:e=>requestAnimationFrame(e)},[y.SET_TIMEOUT]:{doesThisMethodExist:!0,defer:(e,t=0)=>setTimeout(e,t)}},M=(e,{timeout:t=100,type:o=y.REQUEST_IDLE_CALLBACK,fallbackType:n}={})=>{const i=U[o]||U[n];if(i&&i.doesThisMethodExist)return i.defer(e,t);U[y.SET_TIMEOUT].defer(e,t)},P=new I;function G(e){const o=t(()=>window.VWO._.allSettings.dataStore.plugins.DACDNCONFIG.sConfig)||{};return t(()=>P.generateShortPath(e,!1,Object.assign({},o)),{},"")}function x(e){return t(()=>e.tagName.toLowerCase(),null,"")}function k(e){return t(()=>vwo_$(e).attr("placeholder"))}function F(e){const{scrollTop:o,contentHeight:n}=t(D,null,{scrollTop:0,contentHeight:0});return L(t(()=>e.getBoundingClientRect().top+o,null,0),n)}function B(e){const o=t(()=>e.id);if(!o)return;const n=function(e){const o=vwo_$(e);return t(()=>o.closest("form").get(0))||t(()=>o.parent().get(0))}(e);if(!n)return;const i=vwo_$(n),s=t(()=>i.find(`label[for="${o}"]`).get(0));return s?t(()=>{var e;return null===(e=s.textContent)||void 0===e?void 0:e.trim()}):void 0}function H(e){var t;const o=(null===(t=e.target)||void 0===t?void 0:t.shadowRoot)&&e.composedPath,n=vwo_$(o?e.composedPath()[0]:e.target).get(0);return{sPath:o?b(n):G(n),tag:x(n),ph:k(n),scrDp:F(n),label:B(n)}}var Y,$,j,K,X,q,Z;window.VWO.modules.utils.getElementMetadata=H,function(e){e.DOM="vwo_dom"}(Y||(Y={})),function(e){e.WILD_CARD="*",e.TRIGGER="trigger",e.POST_INIT="post-init",e.TIMER="vwo_timer",e.TRIGGER_UPDATES="vwo_triggerUpdates"}($||($={})),function(e){e.URL_CHANGE="vwo_urlChange",e.LEAVE_INTENT="vwo_leaveIntent",e.CLICK_EVENT="vwo_dom_click",e.HOVER_EVENT="vwo_dom_hover",e.BLUR_EVENT="vwo_dom_blur",e.FOCUS_EVENT="vwo_dom_focus",e.CHANGE_EVENT="vwo_dom_change",e.ELEMENT_VIEWED_EVENT="vwo_dom_elementViewed",e.SUBMIT_EVENT="vwo_dom_submit",e.PAGE_LOAD_EVENT="vwo_page_load",e.CAMPAIGN_FREQUENCY_EVALUATED="vwo_campaignFrequencyEvaluated"}(j||(j={})),function(e){e.PAGE_VIEW="vwo_pageView",e.PAGE_UNLOAD_EVENT="vwo_pageUnload"}(K||(K={})),function(e){e.EXIT_CONDITIONS="__exitConditions"}(X||(X={})),function(e){e.DOM_CONTENT_LOADED="DOMContentLoaded",e.SCROLL="scroll",e.CLICK="click",e.SUBMIT="submit"}(q||(q={})),function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR"}(Z||(Z={}));var Q=new class{constructor(e){this.setLevel(e)}setLevel(e="warn"){this.logLevel=Z[e.toUpperCase()]}info(e,t={}){this.customLog(Z.INFO,e,t)}debug(e,t={}){this.customLog(Z.DEBUG,e,t)}warn(e,t={}){var o,n;this.customLog(Z.WARN,e,t,null===(n=null===(o=window.VWO)||void 0===o?void 0:o._)||void 0===n?void 0:n.customError)}error(e,t={}){var o,n;this.customLog(Z.ERROR,e,t,null===(n=null===(o=window.VWO)||void 0===o?void 0:o._)||void 0===n?void 0:n.customError)}customLog(e,t,o,n=null){var i,s,r;if(e>=this.logLevel){const a=this.formatMessage(e,t,o);null===(r=null===(s=null===(i=window.VWOEvents)||void 0===i?void 0:i.store)||void 0===s?void 0:s.actions)||void 0===r||r.addLogsForDebugging(a),n?n(a):this.consoleLog(e,[a])}}consoleLog(e,t){switch(e){case Z.INFO:console.info(...t);break;case Z.WARN:console.warn(...t);break;case Z.ERROR:console.error(...t);break;default:console.log(...t)}}formatMessage(e,t,o){var n,i;const s=Object.keys(o).reduce((e,t)=>e.replace(new RegExp(`{{${t}}}`,"g"),o[t]),t),r=`${Y.DOM}_`;let a=o;const d=(null===(n=o.data)||void 0===n?void 0:n.vwoEventName)||o.vwoEventName;d!==r+q.CLICK&&d!==r+q.SUBMIT||(a=o.data?null===(i=o.data)||void 0===i?void 0:i.props:a.props,a=a||{name:d});let c=JSON.stringify;try{c=window.VWO._.native.JSON.stringify||JSON.stringify}catch(e){}return`VWO: [${Z[e].toUpperCase()}] [${(new Date).toUTCString()}] ${s} ${c(a)}`}}("warn");function z(){}try{z.prototype=Object.create(Array.prototype),Object.defineProperty(z.prototype,"clear",{value:void 0,writable:!0,enumerable:!1})}catch(e){}const J=null===(ee=window._vwoCc)||"object"!=typeof ee||Array.isArray(ee)?{}:window._vwoCc;var ee;(()=>{const e=J.debugConfig||{};e.CLICK_DEBUG,e.TIMEOUT_DEBUG,e.GA_DEBUG,e.URL_DEBUG,e.VARIATION_SHOWN_DEBUG,e.IN_LIST_DEBUG})(),J.debugLogs,J.disableAsp,J.vwoUuidV2Secure;const te=t(()=>window.VWO._.useCdn)||!1,oe=(J.enableRefreshLimit,J.expUrlChange,window._vwo_acc_id>1044e3||J.enableLoader,J.eblCSync,J.hdPR,J.oscH,J.cPM,J.svIdInSyncListDbgLog,J.wMS,J.mEPR,J.cA_csa,J.dAM,J.observeHTML,J.useSessionInfo,J.mSSR,J.mtUrlChange,J.allowWinnerSelection,J.dNcLT,!!J.dsPCe),ne=!!J.vTsPU,ie=(J.vTST,J.sTVS,J.aRVId,J.sMR,J.aL,J.aCSF,window._vwo_acc_id>1221449||J.hBCS,J.dHRoDr,J.fPVR,J.cDSTR,J.cLID,J.nUW,J.aLEHIR,J.sTMO,J.eSDO,J.dCEIOS,!!J.sIMCV);J.sWFTPS,J.aSCCD,t(()=>window._vwoCc.rBQP),J.aSMO,J.nHE,J.gVAoC;class se{constructor(){this.GoalsEnum=window.VWO._.GoalsEnum,this.eventName=O,this.attachedFilters=[],this.unloadListenersAttached=!1,this.registeredTriggers=[],this.unloadCaptured=!1,this.functionalTriggerFilters=new Set,this.lastResetTime=0,this.goalConverter=new window.VWO.modules.utils.goalUtils.GoalConversion("vwoPageUnloadData",[this.GoalsEnum.PAGE_UNLOAD,this.GoalsEnum.CUSTOM_GOAL]),window.VWO._.phoenixMT.on("vwo_campaignsLoaded",()=>{this.updatePageUnloadTriggers()}),this.updatePageUnloadTriggers()}updatePageUnloadTriggers(){return d(this,void 0,void 0,function*(){const e=yield window.fetcher.getValue("VWO._.pageUnloadTriggers");if(this.pageData=yield window.fetcher.getValue("VWO.pluginStorage.props.page"),!e)return;const t=Object.keys(e);if(this.registeredTriggers.length!==t.length){const e=this.extractPageUnloadFilters(t);this.attachedFilters=function(e){const t=[];return e.forEach(e=>{var o;null===(o=e.filters)||void 0===o||o.forEach((o,n)=>{const i=o[0].substring(0,o[0].indexOf("."));if("event"===i||"page"===i){const i=JSON.parse(JSON.stringify(o));t.push({condition:i,triggerName:e.triggerName,condId:e.id,filterId:n,aux:e.aux})}})}),t}(e),this.registeredTriggers=t,this.addListenersForPageUnload()}})}extractPageUnloadFilters(e){var t;const o=[];for(let n=0;n86400)){e.sdxp=s.xScrollDepthPercent,e.sdxa=s.xScrollDepthAbs,e.sdyp=s.yScrollDepthPercent,e.sdya=s.yScrollDepthAbs,window.VWO._.lastPageUnloadURL=this.pageData.url;try{e.preComputedConds=window.VWO.modules.utils.triggers.triggersConditionsCheck(this.eventName,e,this.attachedFilters),o={name:this.eventName,vwoEventName:this.eventName,preComputedConds:e.preComputedConds,page:this.pageData,timeSpent:e.timeSpent,sdxp:e.sdxp,sdxa:e.sdxa,sdyp:e.sdyp,sdya:e.sdya,postSyncCallback:function(){delete window.VWO._.lastPageUnloadURL}},window.VWO._.functionalDSLUtils.evaluateFunctionalTriggers({event:e,eventName:this.eventName,functionalTriggerFilters:this.functionalTriggerFilters}),this.goalConverter.fireEventForConversion(this.eventName,o,{eventData:e}),delete o.preComputedConds;const n=t(()=>o._vwo.eventDataConfig)||{};e._vwo=e._vwo||{},Object.keys(n).length&&(e._vwo.eventDataConfig=n),e._vwo.syncEventData=o}catch(e){Q.error(e)}}}resetStartTimeAndPageData(){this.lastResetTime=performance.now(),this.updatePageUnloadTriggers()}sendDataWrapper(e){return this.unloadCaptured?this.unloadCaptured=!1:(window.VWO._.phoenixMT.trigger(O,e),this.unloadCaptured=!0)}addListenersForPageUnload(){this.unloadListenersAttached||(window.VWO._.phoenixMT.on(O,e=>{this.evaluateAndSendData(e)},{syncToDataLayer:!0}),window.VWO._.phoenixMT.on(A,e=>{this.sendDataWrapper(e)}),this.initScrollTracking=function(){let e,t,o=0,n=0,i=0,s=0;const r=document.querySelector("._vwo_scroll_fix");function a(r=!1){try{const{xScrollPercent:a,yScrollPercent:d,absXScroll:c,absYScroll:l,contentWidth:w,contentHeight:u}=D(),_=ta(!0)),r?r.addEventListener("scroll",()=>a()):window.addEventListener("scroll",()=>a()),{getFinalScrollValues:function(){return{xScrollDepthAbs:o,yScrollDepthAbs:n,xScrollDepthPercent:i>100?100:i,yScrollDepthPercent:s>100?100:s}},updateScrollState:a}}(),window.VWO._.phoenixMT.on("vwo_urlChangeMt",e=>{window.VWO._.phoenixMT.trigger(O,e),this.resetStartTimeAndPageData()}),this.unloadListenersAttached=!0)}}var re,ae,de;function ce(o,n){let i=!1;const s=function(){i||(i=!0,function(o,n){var i,s,r,a,d,c,l,w;const u=window._vwo_cdn||window.VWO.modules.dataStorePlugin.serverUrl,g=window.VWO.modules.dataStorePlugin.serverUrl,E=null===(r=null===(s=null===(i=window.VWO._.allSettings)||void 0===i?void 0:i.dataStore)||void 0===s?void 0:s.plugins)||void 0===r?void 0:r.LIBINFO,h=null===(a=null==E?void 0:E.TRACK)||void 0===a?void 0:a.HASH,v=null===(d=null==E?void 0:E.OPA)||void 0===d?void 0:d.HASH,O=null===(c=null==E?void 0:E.OPA)||void 0===c?void 0:c.PATH,p=null===(l=null==E?void 0:E.SURVEY)||void 0===l?void 0:l.HASH;let A=!1,S=!1;const C=null===(w=window.VWO._)||void 0===w?void 0:w.loadPC;let m=!1,I=window._vis_apm_lib;const N=[];for(const V of o){const W=window.VWO._.allSettings.dataStore.campaigns;if(Object.prototype.hasOwnProperty.call(W,V)){const b=W[V];if(b.type!==re.ANALYSIS_CAMPAIGN&&b.type!==re.ANALYZE_FORM_CAMPAIGN&&b.type!==re.ANALYZE_HEATMAP_CAMPAIGN&&b.type!==re.ANALYZE_RECORDING_CAMPAIGN||(A=!0,S=!0),b.type!==re.FUNNEL_CAMPAIGN&&b.type!==re.GOAL_CAMPAIGN&&b.type!==re.INSIGHTS_FUNNEL_CAMPAIGN&&b.type!==re.INSIGHTS_METRIC_CAMPAIGN||(S=!0),b.type===re.SURVEY_CAMPAIGN||b.survey&&b.survey.id){if(window.VWO._.dSl)continue;for(var T in m=!0,b.survey)Object.prototype.hasOwnProperty.call(b.survey,T)&&N.push(T)}}}if(C&&window.VWO.modules.utils.loadScript(`${u}web/djIkcGM6MS4w/tag-1a6cb79d9b921e9f733a3a9f91c43b90.js`,null,function(){}),S&&!window.VWO.v_t&&window.VWO.modules.utils.loadScript(`${u}7.0/track-${h}.js`),A&&!window.VWO.nls){function R(t){const o={dSC:!0,onloadCb:function(e,t){if(200===e.status||304===e.status)return _vwo_code.addScript({text:e.responseText}),void window.VWO.modules.vwoUtils.optOut.callStopAnalyzeAndSurvey();window.VWO._.gcpfb(t,R,e.status)},onerrorCb:function(t){window.VWO._.gcpfb(t,R)||e({msg:"Error in loading OPA library"})}};window.VWO.load_co(t,o)}window.VWO.v_t||window.VWO.modules.utils.loadScript(`${u}7.0/track-${h}.js`),R(`${u}analysis${O}/opaEv-${v}.js`)}if(!window.VWO._[f]){const L=window.VWO.featureInfo.sse;!window.VWO.v_t&&L&&window.VWO.modules.utils.loadScript(`${u}7.0/track-${h}.js`);const D=()=>{const e=t(()=>window.VWO._.useCdn)?`${u}static/1.0/`:g;window.VWO.modules.utils.loadScript(`${e}va_survey-${p}.js`)};window.VWO._.shouldLoadSurveyLib?D():window.VWO.phoenix('on("${{1}}", "${{2}}")',null,{captureGroups:[f,D]})}if(I&&!window.VWO.apm){const y=window._vis_apm_lib,U=`${g}${y}`,M=`${window._vwo_cdn}${y}`,P=te?M:U;window.VWO.modules.utils.loadScript(P,null,()=>{},{defer:!0})}m&&n&&window.VWO.phoenix('trigger("${{1}}", "${{2}}")',null,{captureGroups:[_,{oldArgs:[N]}]})}(o,n))},r=()=>window.VWO._.defer(s);!function(e){if("undefined"==typeof PerformanceObserver)return;let t=!1;const o=new PerformanceObserver(n=>{n.getEntries().length&&!t&&(t=!0,o.disconnect(),e())});try{o.observe({type:"largest-contentful-paint",buffered:!0})}catch(e){}}(r),function(e){if("complete"===document.readyState)e();else{const t=()=>{window.removeEventListener("load",t),e()};window.addEventListener("load",t)}}(r)}function le(e,t){const o=window.VWO.consentMode;if(o){if(o.dTI)return;if(o.hTI){const o=window.VWO._.phoenixMT.on(S,()=>{window.VWO._.phoenixMT.off(S,o),window.fetcher.setValue("VWO.consentMode.hTI",!1),window.VWO.phoenix('trigger("${{1}}")',null,{captureGroups:[S]}),ce(e,t)});return}}ce(e,t)}!function(e){e.SURVEY_CAMPAIGN="SURVEY",e.ANALYZE_HEATMAP_CAMPAIGN="ANALYZE_HEATMAP",e.ANALYZE_RECORDING_CAMPAIGN="ANALYZE_RECORDING",e.ANALYZE_FORM_CAMPAIGN="ANALYZE_FORM",e.ANALYSIS_CAMPAIGN="ANALYSIS",e.GOAL_CAMPAIGN="TRACK",e.FUNNEL_CAMPAIGN="FUNNEL",e.INSIGHTS_FUNNEL_CAMPAIGN="INSIGHTS_FUNNEL",e.INSIGHTS_METRIC_CAMPAIGN="INSIGHTS_METRIC"}(re||(re={})),function(e){e.ANALYSIS="r",e.ANALYZE_FORM="a",e.ANALYZE_HEATMAP="a",e.ANALYZE_RECORDING="a",e.FUNNEL="t",e.SURVEY="s",e.TRACK="t",e.INSIGHTS_FUNNEL="t",e.INSIGHTS_METRIC="t"}(ae||(ae={})),function(e){e.SEPARATE_PAGE="SEPARATE_PAGE",e.CLICK_ELEMENT="CLICK_ELEMENT",e.ENGAGEMENT="ENGAGEMENT",e.FORM_SUBMIT="FORM_SUBMIT",e.ON_PAGE="ON_PAGE",e.REVENUE_TRACKING="REVENUE_TRACKING",e.CUSTOM_GOAL="CUSTOM_GOAL",e.PAGE_UNLOAD="PAGE_UNLOAD",e.WIDGET_CLOSE="WIDGET_CLOSE",e.WIDGET_SHOWN="WIDGET_SHOWN"}(de||(de={})),window.VWO._.loadNonTestingLibraries=le;const we=[re.ANALYSIS_CAMPAIGN,re.SURVEY_CAMPAIGN,re.ANALYZE_RECORDING_CAMPAIGN,re.ANALYZE_HEATMAP_CAMPAIGN,re.ANALYZE_FORM_CAMPAIGN,re.GOAL_CAMPAIGN,re.FUNNEL_CAMPAIGN,re.INSIGHTS_FUNNEL_CAMPAIGN,re.INSIGHTS_METRIC_CAMPAIGN];const ue={[re.ANALYZE_RECORDING_CAMPAIGN]:!0,[re.ANALYZE_HEATMAP_CAMPAIGN]:!0,[re.ANALYZE_FORM_CAMPAIGN]:!0,[re.GOAL_CAMPAIGN]:!0,[re.FUNNEL_CAMPAIGN]:!0,[re.INSIGHTS_FUNNEL_CAMPAIGN]:!0,[re.INSIGHTS_METRIC_CAMPAIGN]:!0};const _e=[re.ANALYZE_RECORDING_CAMPAIGN,re.ANALYZE_HEATMAP_CAMPAIGN,re.ANALYZE_FORM_CAMPAIGN];const ge=[re.INSIGHTS_FUNNEL_CAMPAIGN,re.INSIGHTS_METRIC_CAMPAIGN];const Ee={isDomIndependentCampaign:function(e){return we.includes(e)},isSessionBasedCampaign2:function(e={}){return!!ue[e.type||""]},isAnalyzeCampaign:function(e){return _e.includes(e)},hasInsightsMetric:function(e){return ge.includes(e)}};let he=e=>e;window.VWO._.namespaceKeyWithAccId=he;class ve{constructor(){this.vwoExecutedTriggeredOnce=!1,this.vwoOSCTriggeredOnce=!1,this.vwoDebouncedTimer=null}_debouncedEvent(){this.vwoDebouncedTimer&&clearTimeout(this.vwoDebouncedTimer),this.vwoDebouncedTimer=setTimeout(()=>this._sendCampaignsLoaded(),ve.CAMPAIGNS_LOADED_DELAY)}_sendCampaignsLoaded(){null!==this.vwoCookieListenerId&&(window.VWO._.phoenixMT.trigger("vwo_campaignsLoaded"),window.VWO._.phoenixMT.off(this.vwoCookieListenerId),this.vwoCookieListenerId=null)}_attachCombiListener(){this.vwoCookieListenerId=window.VWO._.phoenixMT.on(c,()=>this._debouncedEvent())}_canAttachCombiListenerOnce(e){return!(!window._vis_debug&&!i())||(this.vwoExecutedTriggeredOnce?e||this.vwoOSCTriggeredOnce:!e)}_attachCombiListenerOnce(e){this._canAttachCombiListenerOnce(e)&&(this._debouncedEvent(),this._attachCombiListener())}execute(){const e=!!window._vwo_code;if(this._attachCombiListenerOnce(e),this.vwoExecutedTriggeredOnce)return void(this.vwoOSCTriggeredOnce=!0);const o=function(){const{executableCampaignsOnCurrentPage:e}=window.VWO._,o=window.VWO._.allSettings.dataStore.campaigns,n=[{},[]];if(null==e?void 0:e.length)for(const i of e){const e=o[i];t(()=>window.VWO.modules.utils.libUtils.isTestingCampaign(e.type))&&(e.ready?n[0][i]=e.combination_chosen:n[1].push(i))}return window._vwo_code&&(window._vwo_code.lT||window._vwo_code.sT)&&n.push({timeout:!0}),n}();window.VWO._.triggerEvent.apply(window.VWO._.triggerEvent,[p,o]),this.vwoExecutedTriggeredOnce=!0}}ve.CAMPAIGNS_LOADED_DELAY=200;const Oe=new ve,pe=Oe.execute.bind(Oe);const Ae=()=>window.VWO._,Se=()=>Ae().allSettings.dataStore,fe=()=>t(()=>Se().plugins,{sendErrorLog:!1},{}),Ce=t(()=>fe().UA.br,void 0,""),me=t(()=>fe().UA.de,void 0,""),Ie=("safari"===Ce.toLowerCase()||["ipad","iphone"].includes(me.toLowerCase()),t(()=>t(()=>fe().DACDNCONFIG,{sendErrorLog:!1},{}).jsConfig.osce,void 0,!1));t(()=>"ios"===fe().UA.os.toLowerCase(),void 0,!1),t(()=>Se().vwoData.ovot);function Ne(e){return 1!=e||!window.VWO._.disableAutofetchSettings}function Te(e,t){var o,n,i,s,r,a,d;Ne(e)&&(o=()=>{Ne(e)&&window.VWO.settings.requestSettings(e)},d=!1,-1===(n=+t||0)||i?(r=requestAnimationFrame,a=cancelAnimationFrame):(r=setTimeout,a=clearTimeout),function(...e){d&&(a(s),s=null),s=r(function(){o.apply(this,e)},n),d=!0})()}const Ve=e=>{const o=()=>e?Te(e,window.VWO._.SPA_NEW_PAGE_SETTINGS_DELAY):function(){const e=t(()=>window.VWO.featureInfo.cS);if(window._vis_opt_heatmap||(window._vis_debug||i())&&!e)return;const o=window._vwo_code,{SPA_SETTINGS_DELAY:n,SPA_NEW_PAGE_SETTINGS_DELAY:s}=window.VWO._,r=o?1:2;Te(r,o?n:s)}();if(Ie){if(Ie){if(!(window.VWO._.dynReady||e&&1!==e)){const e=window.VWO._.phoenixMT,t=e.on(w,()=>{e.off(w,t),o()})}else o()}}else o()};window.VWO.settings={requestSettings:function(o){return d(this,void 0,void 0,function*(){const n=window.VWO.modules.utils.libUtils,s=t(()=>window.VWO.featureInfo.cS);if((window._vis_debug||i()||n.isBot2()||window.VWO._.selfHosted)&&!s)return;if(window.VWO._.lsP)return;const{dcdnUrl:r=""}=window._VWO||{},{serverUrl:a,accountId:d,currentUrl:c}=window.VWO.modules.dataStorePlugin,l=t(()=>{var e;return null===(e=window._vwo_code)||void 0===e?void 0:e.getVersion})&&window._vwo_code.getVersion();if(r){const t=window._vwo_code?4:5,{settingsUrl:o,fallbackUrl:n}=window.VWO._.getSettingsUrl({settingsType:t,cacheParam:!0,txtCfgState:!0});return function(t,o){window.VWO.modules.utils.loadScript(t,()=>{window.VWO.modules.utils.loadScript(o,window.fetcher.getValue("VWO.modules.utils.libUtils.firePageViewEvent"),()=>{},{defer:!0,allowReload:!0}),e({msg:`settings.js type ${window._vwo_code?4:5} cdn request failed.`,url:window.location.href,uuid:window.VWO._.cookies.get("_vwo_uuid"),source:encodeURIComponent("settingsjs")})},()=>{},{defer:!0,allowReload:!0})}(o,n)}const w=[],u=window._vwo_exp_ids,_=window._vwo_exp;let g=!1;const E=t(()=>window.VWO.pageGroup.pageConfig),h=t(()=>window.VWO.pageGroup.experimentConfig),v=[],O=[];for(const e in E)Object.hasOwnProperty.call(E,e)&&v.push(e);for(const e in h)Object.hasOwnProperty.call(h,e)&&O.push(e);const p=[];for(let e=0;e=1.4&&l<2){let e;undefined._.jar||(e=window._vwo_code.getCombinationCookie&&n.getCombinationCookie()),e&&(S+="&c="+e)}if(4!==o&&w.length){const e="&exc="+w.join("|");S.length+e.length<2e3&&(S+=e)}window.VWO.modules.utils.loadScript(S,()=>window.fetcher.getValue("VWO.modules.utils.libUtils.initAuxiliaryPageView"),()=>{},{defer:!0})})}};const We=window.VWO.TRACK_SESSION_COOKIE_EXPIRY_CUSTOM||1/48,be={TRACK_GLOBAL_COOKIE_NAME:"_vwo_ds",TRACK_SESSION_COOKIE_NAME:"_vwo_sn",TRACK_SESSION_COOKIE_EXPIRY:We,SESSION_TIMER_EXPIRE:60*We*60*1e3*24,COOKIE_VERSION:3,COOKIE_TS_INDEX:1,COOKIE_VERSION_INDEX:0,FIRST_SESSION_ID_INDEX:0,PC_TRAFFIC_INDEX:1,CURRENT_SESSION_ID:6,LAST_SESSION_ID:7,SESSION_COUNT_INDEX:8,LAST_TIMESTAMP_SHOWN_INDEX:9,RELATIVE_SESSION_ID_INDEX:0,PAGE_ID_INFORMATION_INDEX:1,SESSION_SYNCED_STATE_INDEX:4,SESSION_SEG_INFO_INDEX:5,TOTAL_TIME_SPENT_IN_A_SESSION_INDEX:6,PAGE_ID_EXPIRY:15,GLOBAL_OPT_OUT:"_vwo_global_opt_out",OPT_OUT:"_vis_opt_out",TEST_COOKIE:"_vis_opt_test_cookie",COOKIE_JAR:"_vwo",SAME_SITE:"_vwo_ssm",UUID:"uuid",UUID_V2:"uuid_v2",VWO_COOKIE_QUERY_PARAM:"vwo_q",DEFAULT_EXPIRY:100,UUID_COOKIE_EXPIRY:365.2425};const Re=window.VWO.modules.events.fireEventAndSyncData,Le=window.VWO._.commonCookieHandler,De=window.VWO._.libUtils;function ye(){const e=function(){const e=(Le.getDataInfoByIndex(5)||"").split(",")[1];return Number(e)+window.VWO._.sessionInfoService.getFirstSessionId()||0}(),t=window.VWO.data.iqst||0;if(window.VWO.data.accountJSInfo&&window.VWO.data.accountJSInfo.iqe&&e{if(i.includes(`${e}`)){const r=i.split("_");r[3]&&r[3]==n.toString()?parseInt(r[2],10)+1==o?(s=[e,t,o,n].join("_"),window.VWO._.phoenixMT.trigger("vwo_insightsFunnel",{data:s})):s=[e,t,r[2],n].join("_"):1==o?(s=[e,t,1,n].join("_"),window.VWO._.phoenixMT.trigger("vwo_insightsFunnel",{data:s})):s=[e,t,0,n].join("_")}}),s):""}(e,t,o,n));var s=Le.getDataStore(),r=s.split(":");if(!r[2])for(let e=r.length;e<=2;e++)r[e]="";r[2].match(new RegExp("(?:^|,)("+e+"_[^,]+)"))?r[2]=r[2].replace(new RegExp("(^|,)("+e+"_[^,]+)"),"$1"+i):r[2]+=(0===r[2].length?"":",")+i,s=r.join(":"),Le.setDataStore(s)}function Me(e,t){const o=Le.getDataStore().split(":")[2];return new RegExp(`(?:,|^)${e}_${t}(?:_[^,]*)?(?:,|$)`).test(o)?"1":""}const Pe={isVisBucketedForTrack:ye,includeFunnel:function(e){Ue(e,1)},excludeFunnel:function(e){Ue(e,0)},isFunnelIncluded:function(e){return Me(e,1)},isFunnelExcluded:function(e){return Me(e,0)},activateFunnels:function(){var e;return d(this,void 0,void 0,function*(){if(!(null===(e=window.VWO._.track)||void 0===e?void 0:e.loaded)&&ye()){const e=Object.keys(window._vwo_exp||{}).map(function(e){return d(this,void 0,void 0,function*(){if(window._vwo_exp&&window._vwo_exp[e]){const t=window._vwo_exp[e].type;De.hasInsightsMetric(t)&&(yield Re(window.VWO.phoenix,u,{id:e}))}})});yield Promise.all(e),window.VWO._.phoenixMT.trigger("vwo_insightsActivated")}})},markFunnelValue:Ue,includeInsightsMetric:function(e){Ue(e,1)},isMetircTriggered:function(e){const t=Le.getDataStore().split(":")[2];return new RegExp(`(?:,|^)${e}_1(?:_[^,]*)?(?:,|$)`).test(t)},fetchInsightsTPC:function(){if(!window.VWO._.libUtils.shouldUseCrossDomainForInsights())return;const e=window.VWO._.networkClient,t=window._vwo_server_url||"https://dev.visualwebsiteoptimizer.com";e.request({url:t+"ping_tpc.php?account="+window._vwo_acc_id+"&getCookieData=true&random="+Math.random(),method:"GET",cacheBurst:!0},{onSuccessCallback:e=>d(this,void 0,void 0,function*(){try{const t=yield e.json();t&&t.cookies&&window.VWO._.libUtils.syncThirdPartyGlobalCookies(t.cookies)}catch(e){}}),onErrorCallback:()=>{}})},setTPCOnPageExit:function(){if(!window.VWO._.libUtils.shouldUseCrossDomainForInsights())return;const e={_vwo_ds:Math.min(window.VWO.TRACK_GLOBAL_COOKIE_EXPIRY_CUSTOM||window.VWO.data.rp||90,90),_vwo_sn:be.TRACK_SESSION_COOKIE_EXPIRY,_vwo_uuid_cd:be.UUID_COOKIE_EXPIRY};Object.entries(e).forEach(([e,t])=>{const o=window.VWO._.cookies.get(e);o&&window.VWO._.cookies.setThirdPartyCookie(window._vwo_acc_id,e,o,t)})}},Ge=window.VWO.modules.utils.campaignUtils,xe=window.VWO.modules.utils.libUtils,ke=window.VWO.modules.tags.dataSync.utils,Fe=window.VWO.modules.dataStorePlugin,Be=Object.keys;const He=new class{getTargetPathInfo(e){let n,i,s,r,a,d,c,l,w;n=vwo_$(t(()=>e.composedPath()[0])||e.target),i=n.get(0);const u=R(i);u!==i&&(i=u,n=vwo_$(i));const _=H(e);return l=oe||!_.sPath?b(i):_.sPath,"string"!=typeof l||"html"===o(l)||xe.isBot2()||(w=n.offset(),"touchend"===e.type?(a=e.originalEvent&&e.originalEvent.changedTouches[0],a&&(s=a.pageX,r=a.pageY)):(s=e.pageX,r=e.pageY),d=Math.round(1e3*(s-w.left)/function(e){return e[0].getBoundingClientRect().width||e.outerWidth()||V("width",e)}(n))/1e3,c=Math.round(1e3*(r-w.top)/function(e){return e[0].getBoundingClientRect().height||e.outerHeight()||V("height",e)}(n))/1e3,(0>d||1c||1ke.sendCall({serverUrl:Fe.serverUrl,accountId:d},{url:s})),window.VWO._.isLinkRedirecting=!1,i=i&&window.VWO._.isBeaconAvailable,window.VWO.modules.tags.wildCardCallback({oldArgs:[n,e,u,_,g]},l);const o={x:_,y:g,path:u,tag:h,ph:v,scrDp:O,label:p},c="id_"+n;a[r]?a[r]=Object.assign(Object.assign({},a[r]),{[c]:e}):a=Object.assign(Object.assign({},a),{[r]:Object.assign({[c]:e},o)})}else xe.inQACampaign(n)&&window.VWO.modules.tags.wildCardCallback({oldArgs:[n,e,u,_,g]},l)}return a}};window.VWO.modules.utils.heatmapUtils=He;const Ye=(e={})=>{t(()=>window.VWO.modules.tags.sessionInfoService.eraseSessionCookie()),window.fetcher.setValue("window._vwo_uuid",null),window.fetcher.setValue("window.VWO._.allSettings.dataStore.uuid",null),window._vwo_uuid=null,window.VWO._.allSettings.dataStore.uuid=null,(e=>{const o=window.VWO._.cookies,n=o.getAll(),i=/^(debug)?(_vis_opt|_vwo)/;for(const s in n)if(i.test(s)){const n=/(_vis_opt_exp_|_vwo_uuid_)(\d+)/,i=t(()=>n.exec(s)[2]);i||"_vwo"==s?(o.createThirdParty(s,"",-1,null,i,void 0,void 0,void 0,void 0,e),s.includes("combi")&&o.createThirdParty(`_vis_opt_exp_${i}_combi_choose`,"",-1,null,i,void 0,void 0,void 0,void 0,e)):o.create(s,"",-1,void 0,void 0,void 0,void 0,e)}})(e),Object.keys(window.localStorage).forEach(e=>{e.indexOf("vwo")>-1&&window.localStorage.removeItem(e)}),window.VWO._.sessionInfoService.setVisitorInformation("new"),t(()=>window.VWO._.crossStore.removeAll()),window.VWO._.phoenixMT.trigger("vwo.session.destroyed"),955434===window._vwo_acc_id&&t(()=>window.VWO._.tua.clearCallbacks())};function $e(e){const t=function(e){return Object.keys(e).filter(t=>Object.prototype.hasOwnProperty.call(e,t))}(window._vwo_exp[e.toString()].goals);return t[0]}window.VWO._.destroySession?window.VWO._.destroySession(Ye):window.VWO._.destroySession=Ye;const je={markInsightGoalTriggered:function(e,t){var o;const n=window.tracklib||window.VWO._.track;e.type===re.GOAL_CAMPAIGN?n.markGoalTriggered(e.id,t):e.type===re.INSIGHTS_METRIC_CAMPAIGN&&((null===(o=e.goals[t])||void 0===o?void 0:o.mca)||window.VWO._.insightsUtils.includeInsightsMetric(e.id))},getInsightCombi:function(e,t){const o=window.VWO._.track,n=window.VWO._.insightsUtils;if(e.type===re.GOAL_CAMPAIGN)return o.isGoalIncluded?o.isGoalIncluded($e(e.id)):void(t||window.VWO.push(["track.delayedGoalConversion",{campaignId:e.id,type:re.GOAL_CAMPAIGN,goalId:$e(e.id)}]));if(e.type===re.FUNNEL_CAMPAIGN)return o.isFunnelIncluded?o.isFunnelIncluded(e.id):void(t||window.VWO.push(["track.delayedGoalConversion",{campaignId:e.id,type:re.FUNNEL_CAMPAIGN}]));if(e.type===re.INSIGHTS_FUNNEL_CAMPAIGN)return n.isFunnelIncluded(e.id);if(Ee.hasInsightsMetric(e.type)&&(e.ready||ie))return window.VWO._.insightsUtils.isVisBucketedForTrack();if(Ee.isAnalyzeCampaign(e.type)){if(o.isAnalyzeCampaignIncluded)return o.isAnalyzeCampaignIncluded(e.id);t||window.VWO.push(["track.delayedGoalConversion",{campaignId:e.id,type:e.type}])}}};window.VWO._.ncLib=window.VWO._.ncLib||{},window.VWO._.ncLib.initNonCriticalLib=()=>{if(pe(),window.VWO._.ncLib.ncInit)return;var e;window.VWO._.vwoLib.init("nonCritical",window.VWO,null),e=window.VWO.modules.dataStorePlugin.vwoUUID,window.VWO.modules.otherLibDeps.setOtherLibrariesDepsMT(),window.VWO._.addConsentTrigger=function(e){return d(this,void 0,void 0,function*(){yield window.VWO._.insightsOnConsentPromise,e()})},window.VWO._.libLoaded=!0,window.VWO._.track=window.VWO._.track||{},window.VWO._.CampaignEnum=Object.assign(Object.assign({},window.VWO._.CampaignEnum),re),window.VWO._.pcTrafficEnum=Object.assign(Object.assign({},window.VWO._.pcTrafficEnum),ae),window.VWO._.GoalsEnum=Object.assign(Object.assign({},window.VWO._.GoalsEnum),de),window.VWO._.EventsEnum=Object.assign(Object.assign({},window.VWO._.EventsEnum),{PERFORMANCE:"vwo_performance",ERROR_ONPAGE:"vwo_errorOnPage",CURSOR_THRASHED:"vwo_cursorThrashed",PAGE_REFRESHED:"vwo_pageRefreshed",QUICK_BACK:"vwo_quickBack",COPY:"vwo_copy",SELECTION:"vwo_selection",TAB_IN:"vwo_tabIn",TAB_OUT:"vwo_tabOut",REPEATED_SCROLLED:"vwo_repeatedScrolled",REPEATED_HOVERED:"vwo_repeatedHovered",LEAVE_INTENT:"vwo_leaveIntent",DOM_SUBMIT:g,DOM_HOVER:E,DOM_FOCUS:h,DOM_BLUR:v,PAGE_UNLOAD:O,WIDGET_CLOSE:C,WIDGET_SHOWN:m}),window.VWO._.SyncableEventsEnum=Object.assign(Object.assign({},window.VWO._.SyncableEventsEnum),{[window.VWO._.EventsEnum.PERFORMANCE]:{},[window.VWO._.EventsEnum.ERROR_ONPAGE]:{},[window.VWO._.EventsEnum.CURSOR_THRASHED]:{},[window.VWO._.EventsEnum.PAGE_REFRESHED]:{},[window.VWO._.EventsEnum.QUICK_BACK]:{},[window.VWO._.EventsEnum.COPY]:{},[window.VWO._.EventsEnum.SELECTION]:{},[window.VWO._.EventsEnum.TAB_IN]:{},[window.VWO._.EventsEnum.TAB_OUT]:{},[window.VWO._.EventsEnum.LEAVE_INTENT]:{},[window.VWO._.EventsEnum.REPEATED_SCROLLED]:{},[window.VWO._.EventsEnum.REPEATED_HOVERED]:{}}),window.VWO._.coreLib=window.VWO._.coreLib||{},window.VWO._.coreLib.compareUrlWithIncludeExcludeRegex=window.VWO.modules.utils.urlUtils.compareUrlWithIncludeExcludeRegex.bind(window.VWO.modules.utils.urlUtils),window.VWO._.coreLib.getCurrentUrl=function(){return window._vis_opt_url||window.location.href},window.VWO._.coreLib.runCampaigns=function(e,t){var o;return d(this,void 0,void 0,function*(){if(!(null===(o=window.VWO._.track)||void 0===o?void 0:o.isUserBucketed()))return void window.VWO._.vwoLib.init("track",window.VWO,null);"object"==typeof e&&(t=e.expIds);const n=t.map(function(e){return d(this,void 0,void 0,function*(){yield window.VWO.modules.events.fireEventAndSyncData(window.VWO.phoenix,u,{id:e})})});yield Promise.all(n),window.VWO._.track.nlsProcessed=!0,window.VWO._.phoenixMT.trigger("vwo_insightsActivated"),window.VWO._.vwoLib.init("track",window.VWO,null)})},window.VWO._.libUtils.createUUIDCookie=function(){return window.VWO._.libUtils.createUUIDCookie2({vwoUUID:e,type:re.ANALYSIS_CAMPAIGN})},window.VWO._.libUtils.sendCall=function(e,t,o,n){window.VWO.modules.vwoUtils.sendCall({url:e},t,o,n)},window.VWO._.libUtils.extraData=function(e){return window.VWO._.libUtils.extraData2(e)},window.VWO._.libUtils.isSessionBasedCampaign=function(e){const t=window.VWO._.allSettings.dataStore.campaigns[e];return Ee.isSessionBasedCampaign2(t)},window.VWO._.libUtils.isBot=function(){return window.VWO._.libUtils.isBot2()},window.VWO.modules.otherLibDeps.storeSurveyDataInVWOSurveySettings(window._vwo_exp),window.VWO.track=window.VWO.track||{},window.VWO.track.goalConversion=function(e){return d(this,void 0,void 0,function*(){yield window.fetcher.getValue("VWO.modules.tags.backwardCompatibilityUtils.customGoalConversion",[e,!0])})},window.VWO.track.revenueConversion=function(e){return d(this,void 0,void 0,function*(){yield window.fetcher.getValue("VWO.modules.tags.backwardCompatibilityUtils.customRevenueConversion",[e,!0])})},window.VWO.track.delayedGoalConversion=function(e){return d(this,void 0,void 0,function*(){yield window.fetcher.getValue("VWO.modules.tags.backwardCompatibilityUtils.delayedGoalConversion",[e])})},function(){const e=window._vwo_pa={},t=window._vwo_exp;for(var o in t)"ANALYZE_RECORDING"===t[o].type&&(e.r=1),"ANALYZE_FORM"===t[o].type&&(e.r=1),"ANALYZE_HEATMAP"===t[o].type&&(e.r=1)}(),window.VWO._.insights=Pe,window.VWO._.insightsLibUtils=Ee,window.VWO._.insightsCampaignUtils=je;const t=window._vis_debug||i();window._vis_heatmap||t||le(window._vwo_exp_ids),new a,window.VWO.modules.phoenixPlugins.events.predefinedEvents.PageUnloadEvent=new se,window.VWO._.ncLib.ncInit=!0,window.VWO._.ncLib.handleClickEvent=e=>{var t;if((null===(t=e._vwo)||void 0===t?void 0:t.aux)&&e.props){e.props.aux=!0;const{isDeadClick:t,isRageClick:o,isErrorClick:n}=e._vwo;(t||o||n)&&e.props&&(t&&(e.props.isDeadClick=!0),o&&(e.props.isRageClick=!0),n&&(e.props.isErrorClick=!0))}},function(){try{document.addEventListener("visibilitychange",()=>{try{document.hidden||window.VWO._.insights.fetchInsightsTPC()}catch(e){}}),window.VWO._.phoenixMT.on(A,e=>{try{window.VWO._.insights.setTPCOnPageExit()}catch(e){}})}catch(e){}}()},window.VWO._.phoenixMT&&window.VWO._.phoenixMT.trigger("vwo_InitNCLib"),function(){const e=window.VWO._.phoenixMT;e.on("vwo_loadSettings",Ve),e.getEventHistory("vwo_loadSettings")&&Ve()}()}(); (function(){ var waitForCondition = function (condition, callback) { var execute = function () { if(condition()) { callback(); } else { setTimeout(execute, 100); } }; execute(); }; waitForCondition(function () { return VWO && VWO._ && VWO._.libLoaded } , function () { !function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function a(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var t=1;t=0;e--){var t=o[e];t.type[t.state]=t.ref}}return m={addEventListener:function(n,i,r,o){if(!s(i)){t&&e.push({$el:n,name:i,callback:r,capture:o});try{n.addEventListener?n.addEventListener(i,r,o):n.attachEvent&&n.attachEvent("on"+i,r,o)}catch(e){}return m}},addMutationObserver:function(e,t,n,r){var o;if(void 0!==window.MutationObserver?o=window.MutationObserver:void 0!==window.WebKitMutationObserver&&(o=window.WebKitMutationObserver),o)try{var a=new MutationObserver(e.bind(r));i.push(a),a.observe(t,n)}catch(e){}},clearAllListeners:function(){for(var t=0;t0||"none"!==(null==t?void 0:t.transition)&&""!==(null==t?void 0:t.transition)?r.length?r[0].overallProgress<.5&&!("none"===(null==t?void 0:t.display)):!("none"===(null==t?void 0:t.display)||"hidden"===(null==t?void 0:t.visibility)):!("none"===(null==t?void 0:t.display)||"hidden"===(null==t?void 0:t.visibility)||"0"===(null==t?void 0:t.opacity)||n.width<=0||n.height<=0)},isLinkOrImmediateParentAnchor:function(e){if(e instanceof HTMLAnchorElement&&e.hasAttribute("href"))return!0;var t=e.parentElement;return!!(t instanceof HTMLAnchorElement&&t.hasAttribute("href"))},isNonDeadClickElement:function(e){switch(e.nodeName.toUpperCase()){case"LABEL":if(e.hasAttribute("for")){var t=e.getAttribute("for");if(document.getElementById(t))return!0}else if(y(e).find("input,select,textarea,option").length>0)return!0}return!e||e._vwo_nd&&!e.disabled||1===g[e.nodeName&&e.nodeName.toUpperCase&&e.nodeName.toUpperCase()]},isElementInViewport:function(e){var t=e.getBoundingClientRect();return!!(t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth))||t.top<(window.innerHeight||document.documentElement.clientHeight)&&t.bottom>0&&t.left<(window.innerWidth||document.documentElement.clientWidth)&&t.right>0},updateNodeVisibility:function(e){E.isNodeVisible(e)?e._vwo_vba_vis=!0:e&&e._vwo_vba_vis&&delete e._vwo_vba_vis}},b={RECORDING_INITIATED:"rI",PAGE_EXIT:"pageExitEvent",NLS_CLICK:"nlsClick",VARIATION_SHOWN:"vS",PAGE_UNLOAD:"pU",METRIC_CONVERTED:"mT",DOM_SUBMIT:"dS",CUSTOM_EVENT:"cE",VWO_VARIATION_SHOWN:"vwo_variationShown",PAGE_VIEW:"vwo_pageView",URL_CHANGE:"vwo_urlChange",GOAL_CONVERTED:"vwo_goalConverted",INSIGHTS_FUNNEL:"vwo_insightsFunnel",CAMPAIGNS_LOADED:"vwo_campaignsLoaded"},O={debounce:function(e,t){var n;return function(){for(var i=arguments.length,r=new Array(i),o=0;o1&&void 0!==arguments[1]?arguments[1]:3,n=e.slice(-t);if(n.length0&&void 0!==arguments[0]?arguments[0]:{};if(n(this,e),window.VWO.clickWatcher&&this.initialized)return window.VWO.clickWatcher;this.deadQueue=[],this.clickQueue=[],this.config=l({clickTimeout:(null===(t=window._vwoCc)||void 0===t?void 0:t.dCT)||500},i),this.sendClicks=O.debounce(this.triggerAuxClick.bind(this),this.config.clickTimeout),this.init()}return r(e,[{key:"init",value:function(){var e=this;if(V.onEventReceive(C,(function(){var t,n,i,r;(null!==(t=window.VWO)&&void 0!==t&&null!==(n=t.nls)&&void 0!==n&&n.r||null!==(i=window.VWO)&&void 0!==i&&null!==(r=i.nls)&&void 0!==r&&r.hs)&&e.initialize()})),_){var t,n=function(){window.fetcher.getValue("VWO._.initClickWatcher").then((function(t){t&&!e.initialized&&e.initialize()}))};n();var i=(null===(t=window.VWO._.enums)||void 0===t?void 0:t.EventsEnumMT)||b;window.VWO._.phoenixMT.on(i.CAMPAIGNS_LOADED,(function(){n()}))}}},{key:"initialize",value:function(){this.initialized||(this.initialized=!0,this.initMutationObserver(),this.initClickListener(),this.initScrollListeners(),this.initPageChangeListeners())}},{key:"initMutationObserver",value:function(){this.mutationObserver=new MutationObserver(this.processMutations.bind(this)),this.initializeNode(document.body)}},{key:"initializeNode",value:function(e){var t,n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null);for(this.mutationObserver.observe(e,{attributes:!0,childList:!0,subtree:!0});t=n.nextNode();)t instanceof HTMLElement&&(E.updateNodeVisibility(t),t.shadowRoot&&this.initializeNode(t.shadowRoot))}},{key:"initClickListener",value:function(){var e=this;_?S.on(window.VWO._.EventsEnum.DOM_CLICK,(function(t){e.processClick(t)})):V.onEventReceive(b.NLS_CLICK,(function(t){e.processClick(t[1])}))}},{key:"initScrollListeners",value:function(){var e=this,t=O.debounce((function(){e.processDeadQueue()}),100);m.addEventListener(document,"scroll",t),m.addEventListener(document.body,"scroll",t,!0)}},{key:"initPageChangeListeners",value:function(){var e=this;_?S.on(b.PAGE_EXIT,(function(){e.processDeadQueue()})):m.addEventListener(window,"beforeunload",(function(){e.processDeadQueue()})),V.onEventReceive(window.VWO._.EventsEnum.URL_CHANGED,(function(){e.processDeadQueue()}))}},{key:"processClick",value:function(e){var t,n,i,r,o=this;if(null===(t=e._vwo)||void 0===t||!t.aux){this.clickQueue.push(e);var a=O.getTargetNode(e);E.updateNodeVisibility(a),e.eventUuid=e.eventUuid||(null===(n=window.VWO.modules)||void 0===n||null===(i=n.utils)||void 0===i||null===(r=i.libUtils)||void 0===r?void 0:r.generateUUID()),setTimeout((function(){o.processDeadQueue({filterQueue:!0})}),this.config.clickTimeout),this.sendClicks(),E.isLinkOrImmediateParentAnchor(a)||E.isNonDeadClickElement(a)||this.deadQueue.push({event:e,target:a,timestamp:Date.now()})}}},{key:"processMutations",value:function(e){var t,n=this,i=["style","id","class"],r=["aria-hidden","aria-expanded","aria-modal","aria-pressed","aria-selected","aria-checked","aria-disabled","aria-busy","aria-invalid","aria-current","aria-haspopup","aria-controls","aria-owns","aria-describedby","aria-labelledby","role"],a=o(e);try{for(a.s();!(t=a.n()).done;){var s=t.value,u=s.target;if("attributes"===s.type){var c=s.attributeName;if(i.indexOf(c)>-1||r.indexOf(c)>-1){var l=!!u._vwo_vba_vis;E.updateNodeVisibility(u);var d=!!u._vwo_vba_vis;(l||l!=d)&&this.processDeadQueue({mutatedNode:u})}}else"childList"===s.type&&(s.addedNodes.forEach((function(e){E.updateNodeVisibility(e),e.shadowRoot&&n.initializeNode(e.shadowRoot),e instanceof HTMLElement&&e._vwo_vba_vis&&n.processDeadQueue({mutatedNode:e})})),s.removedNodes.forEach((function(e){e instanceof HTMLElement&&e._vwo_vba_vis&&n.processDeadQueue()})))}}catch(e){a.e(e)}finally{a.f()}}},{key:"processDeadQueue",value:function(t){var n=this,i=t||{},r=i.mutatedNode,o=i.filterQueue;if(!r||E.isElementInViewport(r)){var a=Date.now();this.deadQueue=this.deadQueue.filter((function(t){var i=t.event,r=t.timestamp;return a-r>=n.config.clickTimeout?(e.classifyDead(i),!1):!!o}))}}},{key:"triggerAuxClick",value:function(){T.getRageClicks(this.clickQueue);var e,t=o(this.clickQueue);try{for(t.s();!(e=t.n()).done;){var n=e.value;n._vwo&&n._vwo.aux&&_&&S.trigger(window.VWO._.EventsEnum.DOM_CLICK,n)}}catch(e){t.e(e)}finally{t.f()}this.clickQueue=[]}},{key:"destroy",value:function(){this.mutationObserver.disconnect(),this.deadQueue=[]}}],[{key:"classifyDead",value:function(e){e._vwo=l(l({},e._vwo),{},{isDeadClick:!0,aux:!0}),e.isDeadClick=!0}}])}());window.VWO.clickWatcher=k;var L=VWO._&&VWO._.ac&&VWO._.ac.eNC;void 0===window.DISABLE_NATIVE_CONSTANTS&&(window.DISABLE_NATIVE_CONSTANTS=!L);var W,P,I,D,R={JSON:{stringify:function(e){var t=this,n=function(e){return"string"==typeof e},i=function(e){return null===e&&"object"===p(e)},r=function(e){return"number"==typeof e&&isNaN(e)},o=function(e){return"number"==typeof e&&!isFinite(e)},a=function(e){return"symbol"===p(e)},s=function(e){return function(e){return void 0===e&&void 0===e}(e)||function(e){return"function"==typeof e}(e)||a(e)},u=function(e){var t=e.split("");return t.pop(),t.join("")};if(!s(e)){if("object"===p(c=e)&&null!==c&&"function"==typeof c.getMonth)return'"'.concat(e.toISOString(),'"');var c;if(function(e){return r(e)||o(e)||i(e)}(e))return"".concat(null);if(!a(e)){var l,d;if(function(e){return function(e){return"number"==typeof e}(e)||n(e)||function(e){return"boolean"==typeof e}(e)}(e))return n(e)?(d='"',l=(l=(l=(l=(l=e.toString()).replace(/\\/g,"\\\\")).replace(/\n/g,"\\n")).replace(/\t/g,"\\t")).replace(/\"/g,'\\"')):d="",l?"".concat(d).concat(l).concat(d):"".concat(d).concat(e).concat(d);if(function(e){return Array.isArray(e)&&"object"===p(e)}(e)){var f="";return e.forEach((function(e){f+=function(e){return r(e)||o(e)||i(e)||s(e)}(e)?t.stringify(null):t.stringify(e),f+=","})),"["+u(f)+"]"}if(function(e){return"object"===p(e)&&null!==e&&!Array.isArray(e)}(e)){var h="";return Object.keys(e).forEach((function(n){var i=e[n],r=s(i);h+=r?"":t.stringify(n)+":"+t.stringify(i)+","})),"{"+u(h)+"}"}}}}}};window.VWO=window.VWO||[],window.VWO._=window.VWO._||{},window.VWO._.nativeConstants=window.VWO._.nativeConstants||(I=function(e,t){try{Object.defineProperty(e,t,{writable:!1})}catch(e){}},D=function(){if(!window.DISABLE_NATIVE_CONSTANTS){if(!document.body)return void(window.DISABLE_NATIVE_CONSTANTS=!0);W=window.document.createElement("iframe"),I(W,"src"),W.setAttribute=function(e,t){},W.style.display="none",W.onload=function(){(P=W.contentWindow).onerror=function(e,t,n,i){window.VWO&&window.VWO._&&window.VWO._.customError&&window.VWO._.customError({msg:e,url:t,lineno:n,colno:i,source:"nativeConstants"})}},document.body.appendChild(W),(P=W.contentWindow)&&I(P.location,"href")}},void 0===window.DISABLE_NATIVE_CONSTANTS?window.DISABLE_NATIVE_CONSTANTS=!0:!1===window.DISABLE_NATIVE_CONSTANTS&&D(),{get:function(e){W&&W.contentWindow||D();var t=P;return t&&!window.DISABLE_NATIVE_CONSTANTS||(t=window),window.VWO.featureInfo&&window.VWO.featureInfo.vwoNative&&R[e]?("JSON"===e&&(R[e].parse=t[e].parse),R[e]):t[e]}});var N=window.VWO._.nativeConstants,M=N,x="ex",F="pr",j="csp",H={FETCH:"fetch",XHR:"xmlhttprequest"},B=function(){return r((function e(){if(n(this,e),window.VWO.errorClickWatcher)return window.VWO.errorClickWatcher}),null,[{key:"markClickAsError",value:function(e){var t=e.map((function(e){var t=f(e.split(":"),2),n=t[0],i=t[1];return{timestamp:parseInt(n,10),id:parseInt(i,10)}}));if(!O.validateLastNErrors(t,3)){var n=Date.now()-performance.timeOrigin,i=A();if(i.length>0){var r=i[i.length-1];r.timeStamp>=n-500&&(r.isErrorClick=!0,r._vwo=l(l({},r._vwo),{},{isErrorClick:!0,aux:!0}))}}}}])}(),U=new B;window.VWO.errorClickWatcher=U;var q,z=parseInt(+new Date/1e3,10),X=function(){return q||(q=VWO.data.ts||z)};function G(e){var t=X(),n=parseInt(+new Date/1e3,10)-z;return e?t+n:1e3*(t+n)+ +new Date%1e3}function Q(e){return 1e3*(X()+(parseInt(e/1e3,10)-z))+ +new Date%1e3}var $=["Script error.","ResizeObserver loop completed with undelivered notifications."],K=N.get("Array"),J=function(){return r((function e(){n(this,e),this.processedData=new K,this.pageErrors=new K,this.nextErrorIndex=0,this.nextPageErrorIndex=0,this.truncationLenth=100}),[{key:"getDataToSend",value:function(){if(this.shouldSendData()){var e=this.processedData.slice(this.nextErrorIndex).join(","),t=this.pageErrors.slice(this.nextPageErrorIndex).join(",");return this.nextErrorIndex=this.processedData.length,this.nextPageErrorIndex=this.pageErrors.length,{er:e,pEr:t}}}},{key:"shouldSendData",value:function(){return this.nextErrorIndex!==this.processedData.length}},{key:"resetData",value:function(){this.processedData=new K,this.pageErrors=new K,this.nextErrorIndex=0,this.nextPageErrorIndex=0}},{key:"processErrorData",value:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;if(!$.some((function(t){return"string"==typeof e[1]&&e[1].toLowerCase().indexOf(t.toLowerCase())>-1}))&&(i||(i=[]),B.markClickAsError(this.processedData),null!==(t=window.VWO.nls)&&void 0!==t&&t.startTime)){var o=e.join("_"),a=i.join("_"),s=r||Math.floor(G()-(null===(n=window.VWO.nls)||void 0===n?void 0:n.startTime)),u=this.pageErrors.indexOf(o);u>=0?this.processedData.push("".concat(s,":").concat(u)):(u=this.pageErrors.length,this.pageErrors.push(o),i.length?this.processedData.push(["".concat(s,":").concat(u),o,a].join("_")):this.processedData.push(["".concat(s,":").concat(u),o].join("_")))}}}])}();var Y=function(e){var t=document.createElement("div");return t.innerHTML='x'),t.firstChild.href},Z=function(){function e(){n(this,e)}return r(e,null,[{key:"patchFetchAPI",value:function(t){var n=window.fetch;window.fetch=function(i,r){var o=n.call(this,i,r);try{var a=Y(e.getFetchURL(i));if(ae.isUrlAllowed(a)){var s=O.getAnonymizedUrl(a),u=O.sanitizeActionData(s),c=r&&r.method||"GET";e.handleResponsePromise(t,o,u,c)}}catch(e){}return o}}},{key:"handleResponsePromise",value:function(e,t,n,i){t.then((function(t){"status"in t&&t.status>=400&&e.processErrorData([H.FETCH,n,t.status||0,i])})).catch((function(t){e.processErrorData([H.FETCH,n,0,i],[O.sanitizeActionData(t.message)])}))}},{key:"getFetchURL",value:function(e){return"object"===p(e)?e.url?e.url:e.toString():e}}])}(),ee=function(){return r((function e(){n(this,e)}),null,[{key:"patchXHRAPI",value:function(e){var t=XMLHttpRequest.prototype.open,n=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(e,n){try{var i=Y(n),r=O.getAnonymizedUrl(i),o=O.sanitizeActionData(r);this._url=o}catch(e){}this._method=e,t.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){try{ae.isUrlAllowed(this._url)&&(this.addEventListener("error",(function(t){e.processErrorData([H.XHR,this._url,this.status||0,this._method],[O.sanitizeActionData(t.message)])})),this.addEventListener("load",(function(t){this.status>=400&&e.processErrorData([H.XHR,this._url,this.status||0,this._method],[O.sanitizeActionData(t.message)])})))}catch(e){}n.apply(this,arguments)}}}])}();window._vwo_evq=window._vwo_evq||[];var te=window._vwo_evq,ne=window._vwo_ev=window._vwo_ev||function(){"jI"!==arguments[0]?te.push([].slice.call(arguments)):te.unshift(["jI"])};window.VWO._.triggerEvent=window._vwo_ev;var ie="pTLD",re=["co","org","com","net","edu","au","ac"],oe=window.vwo_$||window.$;var ae=function(e){function i(){var e;return n(this,i),(e=t(this,i)).processXHRRequests(),e.addPerformanceObserver(),ee.patchXHRAPI(e),Z.patchFetchAPI(e),e}return u(i,e),r(i,[{key:"processXHRRequests",value:function(){var e=this;performance.getEntriesByType("resource").forEach((function(t){if(!([H.FETCH,H.XHR].indexOf(t.initiatorType)<0)&&i.isUrlAllowed(t.name)&&t.responseStatus>=400){var n,r=Q(performance.timeOrigin+t.responseEnd-(null===(n=window.VWO.nls)||void 0===n?void 0:n.startTime)),o=O.getAnonymizedUrl(t.name),a=O.sanitizeActionData(o),s=[t.initiatorType,a,t.responseStatus];e.processErrorData(s,null,r)}}))}},{key:"addPerformanceObserver",value:function(){var e=this,t=new PerformanceObserver((function(t){t.getEntries().forEach((function(t){if(!([H.FETCH,H.XHR].indexOf(t.initiatorType)>-1)&&i.isUrlAllowed(t.name)&&t.responseStatus>=400){var n,r=Q(performance.timeOrigin+t.responseEnd-(null===(n=window.VWO.nls)||void 0===n?void 0:n.startTime)),o=O.getAnonymizedUrl(t.name),a=O.sanitizeActionData(o),s=[t.initiatorType,a,t.responseStatus];e.processErrorData(s,null,r)}}))}));t.observe({type:"resource",buffered:!0}),window.addEventListener("beforeunload",(function(){t.disconnect()}))}}],[{key:"isUrlAllowed",value:function(e){var t=O.getCookieDomain(),n=!0;try{n=!/^$/g.test(e)&&!O.containsOurDomain(e)&&function(e){var t,n=e.split("."),i=n.length,r=n[i-2];return r&&-1!==oe.inArray(r,re)?(t=n[i-3]+"."+r+"."+n[i-1],ne(ie,e,t),t):(t=r+"."+n[i-1],ne(ie,e,t),t)}(new URL(e).host)===t}catch(e){}return n}}])}(J),se=function(e){function i(){var e;return n(this,i),(e=t(this,i)).addErrorListener(),e}return u(i,e),r(i,[{key:"addErrorListener",value:function(){var e=this;window.addEventListener("error",(function(t){if(t&&t.message){var n=O.sanitizeActionData(t.message.slice(0,e.truncationLenth));return e.processErrorData([x,n]),!0}})),window.addEventListener("unhandledrejection",(function(t){if(t&&t.reason){var n="Uncaught (in promise) "+t.reason,i=O.sanitizeActionData(n.slice(0,e.truncationLenth));return e.processErrorData([F,i]),!0}})),document.addEventListener("securitypolicyviolation",(function(t){if(t&&t.blockedURI&&ae.isUrlAllowed(t.blockedURI)){var n=O.getAnonymizedUrl(t.blockedURI),i=O.sanitizeActionData(n),r=[j,i,O.sanitizeActionData(t.violatedDirective)],o=[O.sanitizeActionData(t.originalPolicy)];e.processErrorData(r,o)}}))}}])}(J),ue=N.get("JSON"),ce=function(e){function i(){var e;return n(this,i),(e=t(this,i)).patchConsoleAPI(),e}return u(i,e),r(i,[{key:"patchConsoleAPI",value:function(){var e=console.error,t=this;console.error=function(n){try{var i=n;"string"!=typeof i&&(i=ue.stringify(n)),i=O.sanitizeActionData(i.slice(0,t.truncationLenth)),t.processErrorData([i])}catch(e){}e.apply(console,arguments)}}}])}(J),le=!1,de=window.VWO._.listener,fe=void 0!==VWO.v_e,he=function(){function e(){n(this,e),void 0!==VWO.v_e&&VWO.featureInfo.ele&&!le&&this.init()}return r(e,[{key:"init",value:function(){var e=this;if(de.onEventReceive(C,(function(){var t,n,i,r;(null!==(t=window.VWO)&&void 0!==t&&null!==(n=t.nls)&&void 0!==n&&n.r||null!==(i=window.VWO)&&void 0!==i&&null!==(r=i.nls)&&void 0!==r&&r.hs)&&e.initialize()})),fe){var t,n=function(){window.fetcher.getValue("VWO._.initClickWatcher").then((function(t){t&&!le&&e.initialize()}))};n();var i=(null===(t=window.VWO._.enums)||void 0===t?void 0:t.EventsEnumMT)||b;window.VWO._.phoenixMT.on(i.CAMPAIGNS_LOADED,(function(){n()}))}}},{key:"initialize",value:function(){le||(le=!0,this.exceptionRecorder=new se,this.consoleRecorder=new ce,this.networkRecorder=new ae)}},{key:"sendData",value:function(){var t;if(le&&this.isNewDataAvailable()){var n=this.exceptionRecorder.getDataToSend(),i=this.consoleRecorder.getDataToSend(),r=this.networkRecorder.getDataToSend();if(e.sendErrorOnPageAsEvent(n,i,r),null!==(t=window.VWO.nls)&&void 0!==t&&t.startTime)return e.parseErrorLoggerData(n,i,r)}}},{key:"isNewDataAvailable",value:function(){return this.exceptionRecorder.shouldSendData()||this.consoleRecorder.shouldSendData()||this.networkRecorder.shouldSendData()}},{key:"resetData",value:function(){le&&(this.exceptionRecorder.resetData(),this.consoleRecorder.resetData(),this.networkRecorder.resetData())}}],[{key:"sendErrorOnPageAsEvent",value:function(e,t,n){var i={};e&&e.pEr&&(i.e=e.pEr),t&&t.pEr&&(i.c=t.pEr),n&&n.pEr&&(i.n=n.pEr),Object.keys(i).length>0&&VWO._.phoenixMT&&VWO._.phoenixMT.trigger(window.VWO._.EventsEnum.ERROR_ONPAGE,i)}},{key:"parseErrorLoggerData",value:function(e,t,n){var i=M.get("JSON"),r={error:{e:null==e?void 0:e.er,c:null==t?void 0:t.er,n:null==n?void 0:n.er}};return null!=e&&e.pEr&&(r.pEr=r.pEr||{},r.pEr.e=e.pEr),null!=t&&t.pEr&&(r.pEr=r.pEr||{},r.pEr.c=t.pEr),null!=n&&n.pEr&&(r.pEr=r.pEr||{},r.pEr.n=n.pEr),r.pEr&&(r.pEr=i.stringify(r.pEr)),r.error=i.stringify(r.error),r}}])}();window.VWO.ErrorLogger=new he;window.VWO.ErrorLogger;function ve(e,t){var n=e.median,i=e.p10;if(n<=0)throw new Error("median must be greater than zero");if(i<=0)throw new Error("p10 must be greater than zero");if(i>=n)throw new Error("p10 must be less than the median");if(t<=0)return 1;var r,o,a,s=Math.max(Number.MIN_VALUE,t/n),u=Math.log(s),c=Math.max(Number.MIN_VALUE,i/n),l=-Math.log(c),d=(1-(o=(r=.9061938024368232*u/l)<0?-1:0===r?0:1,a=1/(1+.3275911*(r=Math.abs(r))),o*(1-a*(.254829592+a*(a*(1.421413741+a*(1.061405429*a-1.453152027))-.284496736))*Math.exp(-r*r))))/2;return t<=i?Math.max(.9,Math.min(1,d)):t<=n?Math.max(.5,Math.min(.8999999999999999,d)):Math.max(0,Math.min(.49999999999999994,d))}var pe=/url\(("[^"]*"|'[^']*'|[^)]*)\)/i,we=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);function me(){var e=document.documentElement;return{width:Math.max((null==e?void 0:e.clientWidth)||0,window.innerWidth||0),height:Math.max((null==e?void 0:e.clientHeight)||0,window.innerHeight||0)}}function ge(e,t){var n=Math.max(e.top,0),i=Math.max(e.left,0),r=Math.min(e.bottom,t.height),o=Math.min(e.right,t.width);return r<=n||o<=i?0:(r-n)*(o-i)}function ye(e){var t=pe.exec(e);if(!t)return"";var n=t[1];return 0===n.indexOf('"')||0===n.indexOf("'")?n.slice(1,-1):n}function Ee(e,t){var n={FCP:[3e3,1800,1600,934],SI:[5800,3387,2300,1311],LCP:[4e3,2500,2400,1200],TBT:[600,200,350,150],CLS:[.25,.1,.25,.1]}[e],i={FCP:[1187,7582,603,4251],SI:[2188,15400,831,6380],LCP:[1705,9389,683,8447],TBT:[60,4408,60,1930],CLS:[0,1.3192,0,1.3192]}[e],r=we?0:2,o=n[r],a=n[r+1],s=i[r],u=i[r+1];return tu?0:100*function(e,t,n){var i=ve({median:t,p10:n},e);return i>.9&&(i+=.05*(i-.9)),Math.floor(100*i)/100}(t,o,a)}var be,Oe=-1,Te=function(e){addEventListener("pageshow",(function(t){t.persisted&&(Oe=t.timeStamp,e(t))}),!0)},Ce=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart=0?i="back-forward-cache":n&&(document.prerendering||_e()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-")));return{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},Ve=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},Ae=function(e,t,n,i){var r,o;return function(a){t.value>=0&&(a||i)&&((o=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},ke=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Le=function(e){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e()}))},We=function(e){var t=!1;return function(){t||(e(),t=!0)}},Pe=-1,Ie=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},De=function(e){"hidden"===document.visibilityState&&Pe>-1&&(Pe="visibilitychange"===e.type?e.timeStamp:0,Ne())},Re=function(){addEventListener("visibilitychange",De,!0),addEventListener("prerenderingchange",De,!0)},Ne=function(){removeEventListener("visibilitychange",De,!0),removeEventListener("prerenderingchange",De,!0)},Me=function(){return Pe<0&&(Pe=Ie(),Re(),Te((function(){setTimeout((function(){Pe=Ie(),Re()}),0)}))),{get firstHiddenTime(){return Pe}}},xe=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Fe=[1800,3e3],je=function(e,t){t=t||{},xe((function(){var n,i=Me(),r=Se("FCP"),o=Ve("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTimet.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var i={id:e.interactionId,latency:e.duration,entries:[e]};$e.set(i.id,i),Qe.push(i)}Qe.sort((function(e,t){return t.latency-e.latency})),Qe.length>10&&Qe.splice(10).forEach((function(e){return $e.delete(e.id)}))}}},et=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=We(e),"hidden"===document.visibilityState?e():(n=t(e),Le(e)),n},tt=[200,500],nt=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},xe((function(){var n;Ge();var i,r=Se("INP"),o=function(e){et((function(){e.forEach(Ze);var t=Je();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,i())}))},a=Ve("event",o,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});i=Ae(e,r,tt,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),Le((function(){o(a.takeRecords()),i(!0)})),Te((function(){Ke=Xe(),Qe.length=0,$e.clear(),r=Se("INP"),i=Ae(e,r,tt,t.reportAllChanges)})))})))},it=[2500,4e3],rt={},ot=[800,1800],at=function(e){document.prerendering?xe((function(){return at(e)})):"complete"!==document.readyState?addEventListener("load",(function(){return at(e)}),!0):setTimeout(e,0)},st=function(){return[1053520].indexOf(window._vwo_acc_id)>-1},ut=["vwoEventName"],ct=void 0!==VWO.v_e&&VWO.featureInfo&&VWO.featureInfo.wve||st(),lt=window.VWO._.phoenixMT,dt=window.VWO._.listener,ft=window.VWO._.cookies.get("_vwo_uuid"),ht=new(function(){return r((function e(){var t=this;if(n(this,e),ct){if(window.VWO.performanceWatcher)return window.VWO.performanceWatcher;this.lastWebVitalsSent={},this.resources={},this.webVitals={},this.totalBlockingTime=0,this.isTTICalculated=!1,this.isHidden=!1,this.lastLongTask=0,this.lastVisuallyComplete=0,this.finalTBT=0,this.quietWindowTimeout=0,this.inFlightGetRequests=0,this.isDestroyed=!1,this.isSendingInitialMetrics=!1,this.originalPushState=history.pushState,this.originalReplaceState=history.replaceState,this.isHistoryPatched=!1,"PerformanceObserver"in window&&(this.resourceObserver=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){var n;e.duration<0||(n=e.name,!/^https?:\/\//i.test(n))||null!==t.resources&&(t.resources[e.name]=e.startTime+e.duration)}))})),this.paintObserver=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){"first-paint"!==e.name||t.isHidden||(t.paintObserver.disconnect(),t.firstPaint=e.startTime)}))})),this.longTaskObserver=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){e.startTime>t.firstContentfulPaint&&(t.resetQuietWindowTimer(),e.duration>50&&(t.lastLongTask=e.startTime+e.duration,t.totalBlockingTime+=e.duration-50))}))})),this.initGetRequestTracking(),this.initializeWatcher())}}),[{key:"initGetRequestTracking",value:function(){this.originalFetch=window.fetch,this.originalXhrOpen=XMLHttpRequest.prototype.open,this.originalXhrSend=XMLHttpRequest.prototype.send,this.patchFetchAPI(),this.patchXhrAPI()}},{key:"patchFetchAPI",value:function(){var e=this;window.fetch=function(t,n){var i;return"GET"===((null==n||null===(i=n.method)||void 0===i?void 0:i.toUpperCase())||"GET")?(e.inFlightGetRequests++,e.originalFetch.call(this,t,n).finally((function(){e.inFlightGetRequests--}))):e.originalFetch.call(this,t,n)}}},{key:"patchXhrAPI",value:function(){var e=this;XMLHttpRequest.prototype.open=function(t){return this._method=t.toUpperCase(),e.originalXhrOpen.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){return"GET"===this._method&&(e.inFlightGetRequests++,this.addEventListener("loadend",(function(){e.inFlightGetRequests--})),this.addEventListener("error",(function(){e.inFlightGetRequests--})),this.addEventListener("abort",(function(){e.inFlightGetRequests--}))),e.originalXhrSend.apply(this,arguments)}}},{key:"initializeWatcher",value:function(){var e=this;this.resourceObserver.observe({type:"resource",buffered:!0}),this.paintObserver.observe({type:"paint",buffered:!0}),lt.on(window.VWO._.EventsEnum.PERFORMANCE,(function(t){if(e.isSendingInitialMetrics)e.isSendingInitialMetrics=!1;else{var n=t.vwoEventName,i=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;ii.value&&(i.value=r,i.entries=o,n())},s=Ve("layout-shift",a);s&&(n=Ae(e,i,He,t.reportAllChanges),Le((function(){a(s.takeRecords()),n(!0)})),Te((function(){r=0,i=Se("CLS",0),n=Ae(e,i,He,t.reportAllChanges),ke((function(){return n()}))})),setTimeout(n,0))}))),nt((function(e){n.isDestroyed||(n.webVitals.inp=parseFloat(e.value.toFixed(3)))}),{reportAllChanges:!0}),function(e,t){t=t||{},xe((function(){var n,i=Me(),r=Se("LCP"),o=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach((function(e){e.startTimethis.lastVisuallyComplete&&n-e>1e3){t=function(e){for(var t,n,i=[],r=document.getElementsByTagName("*"),o=me(),a=0;a0&&i.push({time:l,area:d})}}}return i}(this.resources),this.resources=null,this.lastVisuallyComplete=e;var i=null===t?0:function(e,t){var n,i=me(),r=i.width*i.height/10,a=r*e,s=o(t);try{for(s.s();!(n=s.n()).done;){var u=n.value,c=u.time,l=u.area;r+=l,a+=l*Math.max(c,e)}}catch(e){s.e(e)}finally{s.f()}return 0===r?0:a/r}(this.firstContentfulPaint||this.firstPaint,t);this.webVitals.si=parseFloat(i.toFixed(3))}}}},{key:"performanceScoreCalculation",value:function(){var e={FCP:.1,SI:.1,LCP:.25,TBT:.3,CLS:.25},t={FCP:this.firstContentfulPaint,SI:this.webVitals.si,LCP:this.webVitals.lcp,TBT:this.finalTBT,CLS:this.webVitals.cls},n=0;for(var i in t)if(void 0===t[i])return;for(var r in t){n+=Ee(r,t[r])*e[r]}this.webVitals.score=parseFloat(n.toFixed(3))}},{key:"sendInitialPerformanceMetrics",value:function(){if(!this.isSendingInitialMetrics){this.isSendingInitialMetrics=!0;var e={fcp:this.firstContentfulPaint,ttfb:this.timeToFirstByte,dcl:this.domContentLoaded,pl:this.pageLoad},t=Object.keys(e).reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=parseFloat(i.toFixed(3))),t}),{});Object.keys(t).length>0&&window.VWO._.phoenixMT.trigger(window.VWO._.EventsEnum.PERFORMANCE,t)}}},{key:"resetQuietWindowTimer",value:function(){var e=this;this.quietWindowTimeout&&clearTimeout(this.quietWindowTimeout),this.quietWindowTimeout=window.setTimeout((function(){if(!e.isTTICalculated&&e.inFlightGetRequests<3){var t={tti:parseFloat(e.lastLongTask.toFixed(3)),tbt:parseFloat(e.totalBlockingTime.toFixed(3))};e.finalTBT=parseFloat(e.totalBlockingTime.toFixed(3)),lt.trigger(window.VWO._.EventsEnum.PERFORMANCE,t),e.isTTICalculated=!0,e.longTaskObserver.disconnect(),e.speedIndexCalculation()}}),5e3)}},{key:"resetData",value:function(){ct&&(this.webVitals={},this.lastWebVitalsSent={},this.resources={},this.totalBlockingTime=0,this.isTTICalculated=!1,this.isHidden=!1,this.lastLongTask=0,this.lastVisuallyComplete=0,this.finalTBT=0,this.firstPaint=void 0,this.firstContentfulPaint=void 0,this.timeToFirstByte=void 0,this.domContentLoaded=void 0,this.pageLoad=void 0,this.quietWindowTimeout&&(clearTimeout(this.quietWindowTimeout),this.quietWindowTimeout=0),this.inFlightGetRequests=0,this.isDestroyed||(this.destroy(),this.isDestroyed=!0))}},{key:"destroy",value:function(){this.resourceObserver.disconnect(),this.paintObserver.disconnect(),this.longTaskObserver.disconnect(),this.resources=null,this.isHistoryPatched&&(history.pushState=this.originalPushState,history.replaceState=this.originalReplaceState,this.isHistoryPatched=!1),this.originalFetch&&(window.fetch=this.originalFetch),this.originalXhrOpen&&(XMLHttpRequest.prototype.open=this.originalXhrOpen),this.originalXhrSend&&(XMLHttpRequest.prototype.send=this.originalXhrSend)}}])}());window.VWO.performanceWatcher=ht}(); }); })();